using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.UI;
public class ToolTap : MonoBehaviour
{
    public TextMeshProUGUI headerField;
    public TextMeshProUGUI contentField;
    public LayoutElement layoutElement;


    

    void Update()
    {
        if (Application.isEditor)
        {
            int headerLength = headerField.text.Length;
            int contentLength = contentField.text.Length;
            layoutElement.enabled = Mathf.Max(headerField.preferredWidth, contentField.preferredWidth) > layoutElement.preferredWidth;
        }
        
        Vector2 position = Input.mousePosition;

        transform.position = position;
    }
}
